package com.sand.service;

import com.sand.entity.MessageEntity;
import com.sand.entity.MessagedetailsEntity;
import com.sand.entity.UserinfoEntity;
import com.sand.util.PageModel;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface IMessageService {
    List<HashMap<String,Object>> queryMessageByUser(int id,int isUser);

    HashMap<String,Object> queryMessageById(int id);
    PageModel<HashMap<String, Object>> queryMessageLimit(int limit, int page, String condition);
    int queryMessageByCondition(int userId,int landId);

    boolean addMessage(String data);
    boolean addMessagedetails(String data);
    boolean delMessage(String data);
    boolean delMessagedetails(int id);


    //++++++++++++++++++++++++（lyl service）+++++++++++++++++++++++++++
    //根据用户id获取用户与房东聊天的列表信息
    //List<Map<String,Object>> selectChatList(int uid);






}
